# encoding:utf-8
# 执行这段代码时，切换到当前路径的命令行中,启动celery的worker：celery -A tasks worker --pool=eventlet -l info
# --pool=eventlet 是必须要加的，否则会报错 ValueError: not enough values to unpack (expected 3, got 0)
import sys
from tasks import send_msg

import time

if __name__ == '__main__':
    # print("导包路径：",sys.path)
    r = send_msg.delay()
    print(r.ready())
    print(r.get())
    print(time.time())
